/**
 * 
 */
package com.goldcn.common;

 
 
public class ResultData<T> implements java.io.Serializable {

	private String message;
	private String code="1";//默认为成功
	private T data ;

	public ResultData() {
	}

	public ResultData(String code) {
		this.code = code;
	}

	public ResultData(T data) {
		this.data = data;
	}

	public ResultData(String code, T data) {
		this.code = code;
		this.data = data;
	}

	public ResultData(String message, String code, T data) {
		this.message = message;
		this.code = code;
		this.data = data;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public T getData() {
		return data;
	}

	public void setData(T data) {
		this.data = data;
	}


	@Override
	public String toString() {
		return "ResultData{" +
				"message='" + message + '\'' +
				", code='" + code + '\'' +
				", data=" + data +
				'}';
	}



}
